package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInNon1009Mapper;
import com.ims.core.doc.domain.TInNon1009;
import com.ims.core.doc.service.ITInNon1009Service;

/**
 * 1009 区块链电子发票Service业务层处理
 *
 * @author IMS
 * @date 2024-12-01
 */
@Service
public class TInNon1009ServiceImpl implements ITInNon1009Service
{
    @Autowired
    private TInNon1009Mapper tInNon1009Mapper;

    /**
     * 查询1009 区块链电子发票
     *
     * @param id 1009 区块链电子发票主键
     * @return 1009 区块链电子发票
     */
    @Override
    public TInNon1009 selectTInNon1009ById(Long id)
    {
        return tInNon1009Mapper.selectTInNon1009ById(id);
    }

    /**
     * 查询1009 区块链电子发票列表
     *
     * @param tInNon1009 1009 区块链电子发票
     * @return 1009 区块链电子发票
     */
    @Override
    public List<TInNon1009> selectTInNon1009List(TInNon1009 tInNon1009)
    {
        return tInNon1009Mapper.selectTInNon1009List(tInNon1009);
    }

    /**
     * 新增1009 区块链电子发票
     *
     * @param tInNon1009 1009 区块链电子发票
     * @return 结果
     */
    @Override
    public int insertTInNon1009(TInNon1009 tInNon1009)
    {
        tInNon1009.setCreateTime(DateUtils.getNowDate());
        return tInNon1009Mapper.insertTInNon1009(tInNon1009);
    }

    /**
     * 修改1009 区块链电子发票
     *
     * @param tInNon1009 1009 区块链电子发票
     * @return 结果
     */
    @Override
    public int updateTInNon1009(TInNon1009 tInNon1009)
    {
        tInNon1009.setUpdateTime(DateUtils.getNowDate());
        return tInNon1009Mapper.updateTInNon1009(tInNon1009);
    }

    /**
     * 批量删除1009 区块链电子发票
     *
     * @param ids 需要删除的1009 区块链电子发票主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1009ByIds(Long[] ids)
    {
        return tInNon1009Mapper.deleteTInNon1009ByIds(ids);
    }

    /**
     * 删除1009 区块链电子发票信息
     *
     * @param id 1009 区块链电子发票主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1009ById(Long id)
    {
        return tInNon1009Mapper.deleteTInNon1009ById(id);
    }
}
